-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat(controller): Fix inconsistency between etcd cluster and statefulset #53
Conversation
Hi @soma00333. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
13a76bf
to
3a0f051
Compare
/ok-to-test |
/retest |
We may need to fix the timeout config |
Okey, retest worked |
@@ -47,3 +47,5 @@ linters-settings: | |||
revive: | |||
rules: | |||
- name: comment-spacings | |||
gocyclo: | |||
min-complexity: 35 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default 30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider minimizing the complexity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right. The lint workflow fails without this now.
I’d like to tackle this as future work.
…lset Signed-off-by: soma00333 <[email protected]>
3a0f051
to
cf38149
Compare
@@ -47,3 +47,5 @@ linters-settings: | |||
revive: | |||
rules: | |||
- name: comment-spacings | |||
gocyclo: | |||
min-complexity: 35 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider minimizing the complexity.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, soma00333 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thank you! |
I appreciate your quick response |
Overview
This pull request enhances the reconciliation logic in the
Reconcile
method of theEtcdClusterReconciler
to better manage the number of replicas in the StatefulSet. The changes ensure that the number of replicas in the StatefulSet matches the number of etcd members in the cluster.Change
.golangci.yml
: Addedgocyclo
linter with a minimum complexity threshold of 35 to pass the Lint CIOutOfScope
Related Material